package com.csun.cmny.provider.model.domain;

import com.csun.cmny.core.mybatis.BaseEntity;
import lombok.Data;

import javax.persistence.*;
import java.math.BigDecimal;
import java.util.List;

@Data
@Table(name = "cn_omc_set_meal")
public class OmcSetMeal extends BaseEntity {

    /**
     * 套餐名称
     */
    private String name;

    /**
     * 实际价格
     */
    @Column(name = "actual_price")
    private BigDecimal actualPrice;

    /**
     * 购买次数
     */
    @Column(name = "buy_times")
    private Integer buyTimes;

    /**
     * 使用状态：0-未启用，1-启用
     */
    private Integer status;

    /**
     * 描述
     */
    private String remark;

    /**
     * 组织Id
     */
    @Column(name = "group_id")
    private Long groupId;

    /*
    * 套餐原价
  * */
    @Column(name = "original_price")
    private BigDecimal originalPrice;

    /*
    * 折扣数乘以100后的值
    * */
    private Integer discount;

    /*
    * 减免价格
    */
    private BigDecimal subPrice;

    /**
     * 项目Id
     */
    @Transient
    private Long expenseItemId;

    /*
    * 套餐项集合
    * */
    List<OmcSetMealItem> setMealItemList;

}